CFLAGS = -std=c++17 -O2
LDFLAGS = -I/home/lyw/dayu5.1.0/ohos/third_party/vulkan-headers/include -L. -lvulkan


OHOS_SDK=/home/lyw/dayu5.1.0/ohos/prebuilts/ohos-sdk/linux/18
CC=$(OHOS_SDK)/native/llvm/bin/clang --target=aarch64-linux-ohos
CXX=$(OHOS_SDK)/native/llvm/bin/clang++ --target=aarch64-linux-ohos

VulkanTest: main.cpp
	$(CXX) $(CFLAGS) -o vulkan_matmul main.cpp $(LDFLAGS)

.PHONY: test clean

test: VulkanTest
	glslangValidator -V matrix.comp -o matrix.comp.spv

clean:
	rm -rf matrix.comp.spv
	rm -rf vulkan_matmul